<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<script src="__PUBLIC__/jquery-3.1.0.min.js"></script>
<html>
    <head>
        <title>何佳骏的测试账号</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div style="text-align: center;"><h1>点击获得海贼王的宝藏</h1></div>
                <img src="{$arry['headimgurl'}">
         <form  action=" https://api.weixin.qq.com/cgi-bin/menu/create?access_token=QJ7iom2E4JLKw2wm0ucy6YIqGnPHkTSnp5BVMZaHmQO26sUofI3RazejrdaOsVLuD24E59NNo8g19Lixa-zfjEiL_pFngLWEsyLzHw4vdUjhFXRw7AWl7vxvfCOgFu8LUCFjABACKN"  style="width:10%px;margin:0 auto; text-align: center" >     
    <input class="submit" type="submit" style="width: 100px; height: 25px;">
    </form>
        
        
        

    </body>
</html>
<script>

    $(document).ready(function(){
  $(".submit").click(function(){
             var url = $(this).parent().attr("action");  
      var data ={
          "button":[
     {	
          "type":"click",
          "name":"今日歌曲",
          "key":"V1001_TODAY_MUSIC"
      },
      {
           "name":"菜单",
           "sub_button":[
           {	
               "type":"view",
               "name":"搜索",
               "url":"http://www.soso.com/"
            },
            {
               "type":"view",
               "name":"视频",
               "url":"http://v.qq.com/"
            },
            {
               "type":"click",
               "name":"赞一下",
               "key":"V1001_GOOD"
            }]
       }]
         
        };
      $.post(url,
            data,
            function(json){
      console.log(json);
             
            },
              'json');
    return false;
        
        
    });
    
    
   
    
});
     
    
    
    
    
</script>